import { createRouter, createWebHistory } from 'vue-router'
import IndexView from '../views/IndexView.vue'
import InfoView from "../views/InfoView.vue"
import historyStorageView from "../views/historyStorageView.vue"
import selectListView from "../views/selectListView.vue"
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/index'
    },
    {
      path: '/index',
      component: IndexView,
    },
    {
      path: '/lishi',
      component: historyStorageView,
    },
    {
      path: "/info",
      name: 'info',
      component: InfoView
    },
    {
      path: '/selectList',
      component: selectListView
    }
  ]
})

export default router
